package com.hz.web.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hz.web.dao.XyServiceDao;
import com.hz.web.entity.XyServiceEntity;
import com.hz.web.service.IxyService;
import com.hz.web.util.Uid;

@Service
public class XyServiceImpl implements IxyService{

    @Resource
    private XyServiceDao xyServiceDao;

    /**
     * 查询信用服务
     * 
     * @param parmsMap
     * @return
     */
    @Override
    public List<XyServiceEntity> queryXyService(Map<String, Object> parmsMap) {

        return xyServiceDao.queryXyService(parmsMap);
    }

    /**
     * 添加信用服务信息
     * 
     * @param entity
     * @return
     */
    @Override
    public int addXyService(XyServiceEntity entity) {
        if (entity == null) {
            return -1;
        }
        entity.setSysId(Uid.getUid());

        return xyServiceDao.addXyService(entity);
    }

    /**
     * 查询总条数
     * 
     * @param parmsMap
     * @return
     */
    @Override
    public int queryXyHtmlCount(Map<String, Object> parmsMap) {

        return xyServiceDao.queryXyHtmlCount(parmsMap);
    }

    /**
	 * 修改附件路径
	 * @param fileurlStr
	 * @return
	 */
	@Override
	public int updateAttachment(Map<String, Object> parmsMap) {
		
		return xyServiceDao.updateAttachment(parmsMap);
	}

}
